<?php
    $this->assign('title','Contas a Pagar');
    $this->assign('page_local','Contas a Pagar');
    $this->assign('page_now','listagem');
    $this->assign('panel_title','Contas a Pagar');
    $this->start('content_');
?>
    <div class="row">
        <div class="col-md-12">
            <div class="panel panel-primary panel-alt widget-todo">
                <div class="panel-heading">
                    <h3 class="panel-title">Contas a Pagar</h3>
                </div>
                <div class="panel-body">
                    <div class="col-lg-12 padding10">
                        <?php
                            echo $this->Search->create('PayReceive',array('class'=>'form-inline'));
                        ?>
                        <div class="form-group">
                            <?php
                                echo $this->Search->input('filter1',array('class'=>'form-control','placeholder'=>'Descricao','autocomplete'=>'off'));
                            ?>
                        </div>
                        <?php
                            echo $this->Search->button('Filtro',array('class'=>'btn btn-primary'));
                            echo $this->Search->end();

                        ?>
                    </div>
                    <div class="row">
                        <div class="col-lg-12 padding10">
                            <div class="col-sm-2">
                                <button type="button" id="sa-btn-NovaReceita" data-target=".bs-example-modal-lg" class="btn btn-white btn-lg btn-block"><span class="fa fa-money"></span> Nova Despesa</button>
                                <div class="mb10"></div>
                                <section id="sa-box-ContasPagar-infoContaPagar">
                                    <?php echo $this->element('../ContasPagar/_infoContaPagar') ?>
                                </section>
                            </div>
                            <div class="col-md-10">
                                <div class="panel panel-primary panel-alt widget-todo">
                                    <div class="panel-body nopadding">
                                        <ul class="todo-list">
                                            <li class="todo-form nopadding">
                                                <div class="row">
                                                    <div class="col-xs-12">
                                                    </div>
                                                </div>
                                            </li>
                                            <li class="table-responsive nopadding ">
                                                <section id="sa-box-ContasPagar-BtnMeses">
                                                    <?php echo $this->element('_tabelaBtnMes'); ?>
                                                </section>
                                                <table class="table table-hover nomargin" id="sa-box-ContasPagar-tableList">
                                                    <?php echo $this->element('../ContasPagar/_list'); ?>
                                                </table>
                                            </li>
                                        </ul>
                                    </div>
                                    <div class="panel-footer panel-dark text-info text-bold">
                                        <div id="sa-box-DeleteAll" class="pull-left">
                                        </div>
                                        <div class="pull-left mt5">
                                            &nbsp;Total de Lançamentos Selecionados <small>(R$)</small>:&nbsp;
                                        <span class="sa-box-ContasPagar-valorTotal">0,00</span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php
    $this->end();
    echo $this->Html->script(array('chosen.jquery.min','jquery.mask.min','jquery.gritter.min','saDespesa'),array('inline'=>false));
    echo $this->Html->css(array('jquery.gritter'),array('inline'=>false));
    $this->start('modal');
    echo $this->element('_modal');
    $this->end();
?>